package cn.qyd.javapath;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * @author 邱运铎
 * @date 2024-03-03 13:46
 */
public class LocalPathDemo {
    public static void main(String[] args) throws IOException {
        Path rootLocation;
        rootLocation = Paths.get("D:/nginxRepository/storage/");
        System.out.println(rootLocation);
        String myPath = rootLocation.resolve("0e6ej2p3bl3nn418392g.jpeg").toString();
        System.out.println(myPath);
        FileReader fileReader = new FileReader(myPath);
        int a = fileReader.read();
        System.out.println(a);
        fileReader.close();

    }
}
